event_inherited();
if (dead == false)
{
if (global.control == 1)
{
actor_cutscene_control();
actor_team_control();
if (actor_floorbelow(1) == true)
{
have_jumped = false;
falling = false;
}
if (attacking == true)
{
actor_attack(weapon);
}
else
{
actor_postattack(weapon);
}
if (jumping == true) && (have_jumped == false) && (actor_floorbelow(1) == true)
{
if (place_meeting(x,y+1,obj_floor) == true) && (vsp == 0) && (crouching == true)
{
falling = true;
}
else
{
vsp_active = -(g) * (sqrt((2*(jsp+(hsp*4)) / 1)));
have_jumped = true;
}
}
if (have_jumped == true) && (jumping == false)
{
vsp /= 2;
have_jumped = false;
}

if (walking == true) && (place_meeting(x+(dir * (30/room_speed)),y,obj_solid) == false)
{
hsp = min(hsp + (30/room_speed),wsp + ((running == true)*rsp));
}
else
{
hsp = max(hsp - (30/room_speed),0);
}
}
}
actor_sprite_set();
